package com.lonely.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lonely.system.domain.dto.user.SysUserRoleNameDto;
import org.apache.ibatis.annotations.Param;
import com.lonely.system.domain.entity.SysUserRole;

/**
 * 用户与角色关联表 数据层
 *
 * @author fzzf
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 查询用户角色名称映射
     *
     * @param userIds
     * @return
     */
    List<SysUserRoleNameDto> queryUserRoleNames(@Param("userIds") List<Long> userIds);

}
